﻿using System;
using System.Web.UI.WebControls;
using System.Web.UI.Design;
using System.Drawing;

namespace Technullogy.Web.UI
{
    class RoundedDivControlDesigner : ContainerControlDesigner
    {
        private Style _style;

        // Add the caption by default. Note that the caption 
        // will only appear if the Web server control 
        // allows child controls rather than properties. 
        public override String FrameCaption
        {
            get { return "Technullogy Rounded Div"; }
        }

        public override Style FrameStyle
        {
            get
            {
                if (_style == null)
                {
                    _style = new Style();
                    _style.Font.Name = "Verdana";
                    _style.Font.Size = new FontUnit("XSmall");
                    _style.Font.Bold = true;
                    _style.BackColor = Color.DarkOrange;
                    _style.ForeColor = Color.Black;
                }
                return _style;
            }
        }
    }
}
